package com.gluck.cases.app.biz.impl.excel;

import org.apache.poi.ss.usermodel.Workbook;

import java.io.IOException;

/**
 * @ClassName CreateWorkBookHandle
 * @Desc excel 输出handle
 * @Author shiyongzhe
 * @Date 2022/5/24 - 6:06 下午
 **/
public class ExcelOutputHandler extends AbstractExcelHandler<Workbook> {

    @Override
    public void doHandler(Workbook wb, Builder<Workbook> excelBuilder) throws IOException {
//        OutputStream os = null;
//        try {
//            os = new FileOutputStream(excelBuilder.getWbname());
//            wb.write(os);
            excelBuilder.setWb(wb);
//            os.flush();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }finally {
//            os.close();
//        }
    }
}
